package org.hsieh.tr.explore.dbsource.impl;

import org.hsieh.tr.explore.annotation.TreeNodeLabel;

public class ColumnProperty {

    private String name;
    private Object value;

    public ColumnProperty(String name, Object value) {
	super();
	this.name = name;
	this.value = value;
    }

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public Object getValue() {
	return value;
    }

    public void setValue(Object value) {
	this.value = value;
    }

    @TreeNodeLabel(image = "icons/db/Genius-icon.png")
    @Override
    public String toString() {
	return name.toLowerCase() + " ~ " + value;
    }

}
